<template>
    <div class="error-log">
        <p v-if="nodeData.nodeName" class="node-name">「{{nodeData.nodeName}}」节点</p>
        <p>{{errorLogs}}</p>
    </div>
</template>
<script>
import { mapGetters } from 'vuex'
export default {
    name: 'ErrorLog',
    computed: {
        ...mapGetters({
            errorLogs: 'common/getErrorLogs',
            nodeData: 'common/getNodeData'
        })
    }
}
</script>
<style lang="less">
    .error-log {
        p {
            color: #f56c6c;
            margin: 0 0 5px 0;
        }
        .node-name {
            color: initial;
        }
    }
</style>
